﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title - Bibioteca Web</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">
                        <img src="~/Images/bibliotecavirtual.jpg" style="icon:initial" width="60" />
                        @Html.ActionLink("Biblioteca Web", "Index", "Home")
                    </p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                            @if ((Request.IsAuthenticated) && (User.IsInRole("Administrador"))) {
                                <li>@Html.ActionLink("Socios", "Index", "Socios")</li>
                                <li>@Html.ActionLink("Materiales", "Index", "Materiales")</li>
                                <li>@Html.ActionLink("Prestamos", "Index", "Prestamos")</li>
                                <li>@Html.ActionLink("Despachar", "Despachos", "Prestamos")</li>
                                <li>@Html.ActionLink("Devoluciones", "Devoluciones", "Prestamos")</li>
                                <li>@Html.ActionLink("Vencidos", "Vencidos", "Prestamos")</li>  
                            }
                            else 
                            {
                                <li>@Html.ActionLink("Busqueda de un material", "ListaMateriales", "Materiales")</li>
                            }
                                <li>@Html.ActionLink("Contacto", "Contact", "Home")</li>  
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <h3 class="float-left">
                    <p>&copy; @DateTime.Now.Year - Nombre y Apellido: Vittori, Juan Pablo - LU: 78393 - Materia: Desarrollo de Aplicaciones Empresariales - Profesor: Lic. Ariel Trellini</p>
                </h3>
            </div>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)
    </body>
</html>
